import { http } from "@/utils/http";

// 蒸汽焓值
// 查询蒸汽焓值列表
export const getSteamListEnthalpyAPI = data => {
  return http.request("post", "/energy/enthalpySteamConfig/listEnthalpy", {
    data
  });
};
// 删除蒸汽焓值
export const delSteamEnthalpyAPI = data => {
  return http.request("post", "/energy/enthalpySteamConfig/delEnthalpy", {
    data
  });
};
// 新增-更新蒸汽焓值
export const updateSteamEnthalpyAPI = data => {
  return http.request("post", "/energy/enthalpySteamConfig/updateEnthalpy", {
    data
  });
};
// 查看蒸汽焓值及历史记录
export const viewSteamEnthalpyAPI = data => {
  return http.request("post", "/energy/enthalpySteamConfig/viewEnthalpy", {
    data
  });
};

// 热水焓值
// 查询热水焓值列表
export const getHotListEnthalpyAPI = data => {
  return http.request("post", "/energy/enthalpyHotConfig/listEnthalpy", {
    data
  });
};
// 删除热水焓值
export const delHotEnthalpyAPI = data => {
  return http.request("post", "/energy/enthalpyHotConfig/delEnthalpy", {
    data
  });
};
// 新增-更新热水焓值
export const updateHotEnthalpyAPI = data => {
  return http.request("post", "/energy/enthalpyHotConfig/updateEnthalpy", {
    data
  });
};
// 查看热水焓值及历史记录
export const viewHotEnthalpyAPI = data => {
  return http.request("post", "/energy/enthalpyHotConfig/viewEnthalpy", {
    data
  });
};

// 折标系数
// 查询折标碳排放列表
export const getListScoalEcarbonAPI = data => {
  return http.request("post", "/energy/scoalEcarbonConfig/listScoalEcarbon", {
    data
  });
};
// 删除折标碳排放
export const delScoalEcarbonAPI = data => {
  return http.request("post", "/energy/scoalEcarbonConfig/delScoalEcarbon", {
    data
  });
};
// 新增-更新折标碳排放
export const updateScoalEcarbonAPI = data => {
  return http.request("post", "/energy/scoalEcarbonConfig/updateScoalEcarbon", {
    data
  });
};
// 查看折标碳排放及历史记录
export const viewScoalEcarbonAPI = data => {
  return http.request("post", "/energy/scoalEcarbonConfig/viewScoalEcarbon", {
    data
  });
};
// 能源数据字典
export const queryChildByTypeCodeAndItemValue = data => {
  return http.request("post", `/account/api/v1/publish/dictItem/queryChildByTypeCodeAndItemValue`, {
    data
  });
};
